<template>
  <div class="Company"><CompanyCard class="CompanyCard" v-for="(obj,index) in dataInfo " :key="index" :companyInfo="obj"></CompanyCard></div>
</template>

<script>
import CompanyCard from '../components/CompanyCard.vue'
import { getFollowCompany } from '@/api/module/Follow'
export default {
  data () {
    return {
      dataInfo: {}
    }
  },
  components: {
    CompanyCard
  },
  created () {
    this.getFollowCompany()
  },
  methods: {
    async getFollowCompany () {
      const { data } = await getFollowCompany()
      this.dataInfo = data
    }
  }
}
</script>
<style scoped lang="less">
.Company{
    background-color: #f5f5f2;
    height: 100vh;
    .CompanyCard{
        margin-bottom: 12px;
    }
}
</style>
